package com.river.springbootdemo.thinkingjava.generics;

public class ComparablePet implements Comparable<ComparablePet> {
    @Override
    public int compareTo(ComparablePet o) {
        return 0;
    }

    class Cat extends ComparablePet implements Comparable<ComparablePet> {
        public int compareTo(Cat cat) {
            return 0;
        }
    }
}
